# coding=utf-8
"""
数值转化
"""

def safe_float(obj) :
    try:
        retVal = float(obj)
    except ValueError:
        retVal = 0
    except TypeError:
        retVal = 0
    return retVal